<?php

namespace App\Models;
use Overtrue\LaravelLike\Traits\CanBeLiked;
class Tag extends Model
{
    use CanBeLiked, Traits\CreateTagsHelper, Traits\HotTagsHelper;
    protected $fillable = ['name', 'outhername', 'seotitle', 'url'];


    public function pictuers()
    {
        return $this->belongsToMany(Pictuer::class, 'pictuer_tag');
    }

    public function getRouteKeyName()
    {
        return 'url';
    }
}
